﻿using Microsoft.EntityFrameworkCore;
using ParkManagement.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace ParkService.Host.EntityFrameworkCore
{
    /// <summary>
    /// 停哪儿服务迁移数据上下文
    /// </summary>
    public class ParkServiceMigrationDbContext : AbpDbContext<ParkServiceMigrationDbContext>
    {
        public ParkServiceMigrationDbContext(
            DbContextOptions<ParkServiceMigrationDbContext> options)
            : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.ConfigureParkManagement();
        }
    }
}